#!/bin/bash

get_clash(){
    #clashStatus=`docker ps | grep clash | grep 9090 | wc -l`
    clashStatus=`docker ps | grep clash | grep 9090 | grep Up | wc -l`

    if [[ $clashStatus == 1 ]]; then
        printf "嬨"
    fi
}

get_bluetooth(){
    bluetoothMAC='14:0A:29:00:76:14'
    bluetoothStatus=`bluetoothctl info $bluetoothMAC | grep Connected | cut -d":" -f2 | cut -d" " -f2`

    if [[ $bluetoothStatus == 'yes' ]]; then
        printf ""
    fi
}

printf " "
get_bluetooth
printf " "
get_clash
